package com.su.fileupload.service;

import com.su.fileupload.vo.request.FileChunkRequest;
import com.su.fileupload.vo.response.FileChunkCheckResponse;

import java.io.IOException;

/**
 * @author xysusj
 */
public interface ISysFileService {

    /**
     * 文件分块上传
     *
     * @return
     */
    FileChunkCheckResponse upload(FileChunkRequest fileChunkRequest) throws IOException;

    /**
     * 合并文件
     *
     * @param fileChunkRequest
     */
    boolean merge(FileChunkRequest fileChunkRequest);
}
